package org.javaforever.cookieshop.service;

import java.util.List;
import org.javaforever.cookieshop.domain.OrderItemBean;

public interface OrderItemService{
	public List<OrderItemBean> listAllOrderItems() throws Exception;
	public Boolean updateOrderItem(OrderItemBean orderItem) throws Exception;
	public Boolean deleteOrderItem(Long id) throws Exception;
	public Boolean addOrderItem(OrderItemBean orderItem) throws Exception;
	public boolean softDeleteOrderItem(Long id) throws Exception;
	public OrderItemBean findOrderItemById(Long id) throws Exception;
	public OrderItemBean findOrderItemByName(String name) throws Exception;
	public List<OrderItemBean> listActiveOrderItems() throws Exception;
	public void deleteAllOrderItems(String ids) throws Exception;
	public void softDeleteAllOrderItems(String ids) throws Exception;
	public Boolean toggleOrderItem(Long id) throws Exception;
	public Boolean toggleOneOrderItem(Long id) throws Exception;
	public List<OrderItemBean> searchOrderItemsByFieldsByPage(OrderItemBean orderItem,Integer pagesize,Integer pagenum) throws Exception;
	public Boolean activateOrderItem(Long id) throws Exception;
	public void activateAllOrderItems(String ids) throws Exception;
	public List<OrderItemBean> searchOrderItemsByFields(OrderItemBean orderItem) throws Exception;
	public Boolean cloneOrderItem(Long id) throws Exception;
	public void cloneAllOrderItems(String ids) throws Exception;
	public Integer countSearchOrderItemsByFieldsRecords(OrderItemBean orderItem) throws Exception;
	public Integer countActiveOrderItemRecords() throws Exception;
}
